package cn.cvs.pojo;

import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * 角色
 */
@Alias("role")
public class TSysRole {

  private long id;
  private String code;
  private String roleName;
  private long createdUserId;
  private String createdTime;
  private long updatedUserId;
  private String updatedTime;
  
  //private TSysUser sysUser;  //只能有一个管理员 | 店长 | 店员
  //private List<TSysUser> sysUserList;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }


  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }


  public long getCreatedUserId() {
    return createdUserId;
  }

  public void setCreatedUserId(long createdUserId) {
    this.createdUserId = createdUserId;
  }


  public String getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(String createdTime) {
    this.createdTime = createdTime;
  }


  public long getUpdatedUserId() {
    return updatedUserId;
  }

  public void setUpdatedUserId(long updatedUserId) {
    this.updatedUserId = updatedUserId;
  }


  public String getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(String updatedTime) {
    this.updatedTime = updatedTime;
  }

  @Override
  public String toString() {
    return "TSysRole{" +
            "id=" + id +
            ", code='" + code + '\'' +
            ", roleName='" + roleName + '\'' +
            '}';
  }
}
